package 泛型;


class A<T> {
    private T value;

    A(T value) {
        this.value = value;
    }

    T get() {
        return value;
    }
}

public class homeWork {
    public static void main(String[] args) {
        A<String> a = new A<>("xiaoming");
        String ret = a.get();
        System.out.println(ret);
    }

}
